package com.chao.controller;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author LUCK CHAO
 * @date 2024/01/16
 */
@Slf4j
@Controller
@Api(value = "初始化测试", tags = "测试欢迎页")
public class IndexController {


    @ResponseBody
    @GetMapping()
    public String index() {
        return "欢迎来体验这个服务,前端界面暂未开发,请使用swagger接口来触发 (访问路径加/doc) ";
    }

    @GetMapping(value = "/doc")
    public String swaggerDocDirect() {
        return "redirect:/swagger-ui.html#/";
    }

}
